package com.yoshino.visitor;

/**
 * @author yoshino
 **/
public class Client {
    public static void main(String[] args) {
        ObjectStructure objectStructure = new ObjectStructure();

        objectStructure.attach(new Man("man"));
        objectStructure.attach(new Woman("woman"));

        // 成功
        Success success = new Success();
        objectStructure.display(success);
    }
}
